
require('../config/mongodb')()

var news1Model = require('../models/news1Model')

var fs = require('fs')

var str = fs.readFileSync('../db/news1.json')

var arr = JSON.parse(str)

arr.forEach(element => {
    new news1Model(element).save(function(err,item){

        console.log(item);
    });
});
